package com.link.base.base.language.dao.mybatis.mapper;

import com.link.base.base.language.model.Language;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * 语言包
 *
 * @author 阳晓琳
 * @date 2020-08-27 11:01:53
 */
public interface LanguageMapper extends BasicMapper<Language> {

    public Language queryByAbbrName(Language language) throws Exception;

    List<Language> queryListByAbbrName(Language language) throws Exception;

    /**
     * 查询语言包的数型结构
     * @param language
     * @return
     */
    Language queryLanguageTree(Language language);

    /**
     * 查询其它语言包
     * @param language
     * @return
     */
    List<Language> queryOtherLangList(Language language);

    /**
     * 根据ID级联删除
     * @param entity
     */
    void deleteByIdCascade(Language entity);
}
